import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import AboutView from '../views/AboutView.vue'
import ShiftarrangementsView from '../views/Shiftarrangements.vue'
import ShiftarrangementseasyView from '../views/Shiftarrangementseasy.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      meta: {
        title: '主页',
      },
    },
    {
      path: '/about',
      name: 'about',
      component: AboutView,
      meta: {
        title: '今日排班',
      },
    },
    {
      path: '/shiftarrangements',
      name: 'shiftarrangements',
      component: ShiftarrangementsView,
      meta: {
        title: '排班管理',
      },
    },
    {
      path: '/shiftarrangementseasy',
      name: 'shiftarrangementseasy',
      component: ShiftarrangementseasyView,
      meta: {
        title: '排班管理（简单版）',
      },
    },
    { path: '/404', name: '404', component: AboutView },
    { path: '/405', name: '405', component: AboutView },
    { path: '/:pathMatch(.*)', component: HomeView },
  ],
})

export default router
